home *** CD-ROM | disk | FTP | other *** search
- // counts.cpp -- Test effects of ++ and --
-
- #include <iostream.h>
-
- main()
- {
- int count = 98;
-
- cout << "At start, count = " << count;
- cout << "\ncount++ = " << count++ << "; count = " << count;
- cout << "\n++count = " << ++count << "; count = " << count;
- cout << "\ncount-- = " << count-- << "; count = " << count;
- cout << "\n--count = " << --count << "; count = " << count;
- cout << "\nfinal count = " << count;
- }
-
-
- // Copyright (c) 1990 by Tom Swan. All rights reserved
- // Revision 1.00 Date: 10/23/1990 Time: 04:35 pm
-
- // Revision 1.01 Date: 07/08/1991 Time: 05:41 pm
- // Converted for Borland C++ 2.0
-
-